package net.sdd.school.service;

import net.sdd.school.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sdd.school.entity.vo.CoursePublishVo;
import net.sdd.school.entity.vo.CourseVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Jet
 * @since 2022-08-22
 */
public interface ICourseService extends IService<Course> {

    /**
     * 发布课程
     * @param courseVo 封装课程信息、课程描述
     * @return 返回课程ID
     */
    String addCourse(CourseVo courseVo);

    /**
     * 根据课程id查询
     * @param id
     * @return
     */
    CourseVo findCourseById(String id);

    void updateCourse(CourseVo courseVo);

    CoursePublishVo findCoursePublish(String courseId);
}
